﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cocbook_DTO
{
    public class BillView
    {
        public int BillID { get; set; }
        public int ProjectID { get; set; }
        public int CustomerID { get; set; }
        public int StaffID { get; set; }
        public DateTime Date { get; set; }
        public double Total { get; set; }
        public double Paid { set; get; }
        public int CheckOutType { get; set; }

        public BillView(Bill bill)
        {
            BillID = bill.BillID;
            ProjectID = bill.Project.ProjectID;
            CustomerID = bill.Customer.CustomerID;
            StaffID = bill.Staff.StaffID;
            Date = bill.Date;
            Total = bill.Total;
            Paid = bill.Paid;
            CheckOutType = bill.CheckOutType;
        }

    }
}
